3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
Point3D location
Vector3D orientation
Boolean castsShadows
Attenuation attenuation
Float32 hotAngle
Float32 outerAngle
FallOffEnum fallOff
A spot light is a light source that emits a circular cone of light in a specific direction from a specific location. Every spot light has a hot angle and an outer angle that together define the shape of the cone of light and the amount of attenuation that occurs from the center of the cone to the edge of the cone. The attenuation of the light's intensity from the edge of the hot angle to the edge of the outer angle is determined by the light's fall-off value.
Some style objects also specify whether or not objects in a scene shall receive shadows. Thus, conflicting shadowing instructions can be sent to a renderer. The outcome in such a case is renderer-specific, application-specific, or both.
Light data. If no child object is specified, the light should have the properties specified in the default setting of a light data object.
Container (
SpotLight (
0 9 0 # location
0 1 0 # orientation
True # castsShadows
0 0 1 # attenuation
0.3 # hotAngle
0.5 # outerAngle
Linear # fallOff
)
LightData ( ... )
)
Previous | QD3D Book | Overview | Chapter Contents | Next |